find the derivative from the difference quotient